import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'

const routes: Routes = [
  { path: '', redirectTo: 'breads', pathMatch: 'full' },
  { path: 'forms', loadChildren: 'app/reactive-forms/reactive-forms.module.ts#ReactiveFormsGuideModule' },
  { path: 'breads', loadChildren: 'app/breads/breads.module.ts#BreadsModule' },
]

@NgModule({
  imports: [ RouterModule.forRoot(routes, { useHash: true }) ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {
}
